
//  Copyright (C) 2007 Richard Uhler

//?d:join on an object that's not an array
//?e:1,2,3

foo = new Object();
foo[0] = 1;
foo[1] = 2;
foo[2] = 3;
foo.length=3;
foo.join = Array.prototype.join;
print(foo.join());

